﻿
$(function(){
	var pathName=window.document.location.pathname;
	var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
	
	$('input').on('change', function() {
		var wordChineseValue = $('#wordChinese').val();
		if(wordChineseValue != "") {
			var flag = 1;
			$(".nihonn").each(function(){
				if($(this).val() != ""){
					flag = 2;
				}
			});
			if(flag == 2){
				$('#submitButton').removeAttr('disabled');
			} else {
				$('#submitButton').attr('disabled', 'disabled');
			}
		} else {
			$('#submitButton').attr('disabled', 'disabled');
		}
	});
});